<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // 外循环打印多少层
        for (let i = 1; i <= 5; i++) {
            // document.write('i<br>')
            // 内循环是打印多少个
            for (let j = 1; j <= 5; j++) {
                document.write('♥')
            }
            // 换行显示
            document.write('<br>')
        }


    </script>
</body>

</html>